package com.yjhealth.libs.core.net.download;

import android.content.Context;

import com.yjhealth.libs.core.constants.CoreConstants;
import com.yjhealth.libs.core.core.CoreAppInit;

import okhttp3.Interceptor;


public class DownloadManager extends DownloadUtil {

    private static class Holder {
        private static final DownloadManager INSTANCE = new DownloadManager(CoreAppInit.getApplication(),
                CoreConstants.httpDownloadUrl);
    }

    public static DownloadManager getInstance() {
        return Holder.INSTANCE;
    }

    public DownloadManager(Context context, String baseUrl, Interceptor... interceptors) {
        super(context, baseUrl, interceptors);
    }
}
